home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / weapons / nebelhandgranate_base.txt < prev    next >
Encoding:
Text File  |  2002-10-21  |  3.6 KB  |  181 lines

  1. setup
  2. {
  3.     scale 0.52            // Set default scale to 16/30.5 since world is in 16 units per foot and model is in cm's
  4. //    scale 0.55            // Seems to work better than 0.52
  5.     path models/weapons/nebelhandgranate
  6.     skelmodel nebelhandgranate.skd
  7.     surface germ_smoke_gren shader germ_smoke_gren
  8.     surface pin shader germ_smoke_gren
  9. }
  10.  
  11. init
  12. {
  13.     server
  14.     {
  15.         classname        Weapon
  16.         weapontype        grenade
  17.         name            "Nebelhandgranate"
  18.         rank            540 540
  19.         weaponsubtype        1    // differentiates smoke grenades from regular grenades
  20.  
  21.         pickupsound        smokegrenade_snd_pickup
  22.         ammopickupsound        smokegrenade_snd_pickup_ammo
  23.         noammosound        m2frag_snd_noammo
  24.  
  25.         // Holstering info
  26. //        holstertag        "Bip01 Spine1"
  27. //        holsteroffset    "3.12 10.5 3.64"
  28. //        holsterangles    "20 -40 0"
  29. //        holsterScale    1.0
  30.  
  31.         // Primary fire type info (fast, arcing throw)
  32.         firetype        projectile
  33.         ammotype        "smokegrenade"
  34.         projectile        models/projectiles/nebelhandgranate_primary.tik
  35.         semiauto
  36.         clipsize        1
  37.         ammorequired    1
  38.         firedelay        0.75
  39.         maxchargetime    4.0
  40.         minchargetime    0.6
  41.         crosshair        1
  42.         quiet // don't notify AI of it being fired
  43.         autoputaway     1 // automatically put the weapon away when out of ammo
  44.         usenoammo        0 // don't allow it to be used when it has no ammo
  45.         movementspeed    1.0
  46.  
  47.         sp startammo    1
  48.         dm startammo    0
  49.         sprealism startammo    1
  50.         dmrealism startammo    0
  51.  
  52.         // Secondary fire type info (more controllable, straight throw)
  53.         shareclip
  54.         secondary firetype        projectile
  55.         secondary ammotype        "smokegrenade"
  56.         secondary projectile    models/projectiles/nebelhandgranate.tik
  57.         secondary clipsize        1
  58.         secondary ammorequired    1
  59.         secondary firedelay        0.75
  60.         secondary maxchargetime    1.5
  61.         secondary minchargetime    0.5
  62.  
  63.         // AI animation group info
  64.         weapongroup        grenade
  65.     }
  66.     client
  67.     {
  68.         cache models/projectiles/nebelhandgranate_primary.tik
  69.         cache models/projectiles/nebelhandgranate.tik
  70.     }
  71. }
  72.  
  73. animations
  74. {
  75.     raise nebelhandgranate.skc
  76.     {
  77.         // if we're pulling out grenades, we've definatly got 'em
  78.         server
  79.         {
  80.             enter surface all -nodraw
  81.         }
  82.     }
  83.     idle   nebelhandgranate.skc
  84.     {
  85.         server
  86.         {
  87.             enter surface all -nodraw
  88.         }
  89.     }
  90.  
  91.     // this should make sure that it doesn't look like there's a grenade in hand when you don't have one
  92.     idle_empty nebelhandgranate.skc
  93.     {
  94.         server
  95.         {
  96.             enter surface all +nodraw
  97.         }
  98.     }
  99.  
  100.     charge nebelhandgranate_charge.skc
  101.     {
  102.         server
  103.         {
  104.             8 surface pin +nodraw
  105.         }
  106.         client
  107.         {
  108.             enter sound smokegrenade_snd_grenade_pull weapon
  109.  
  110.             8 tagspawn tag_pin
  111.             (
  112.                 count 1
  113.                 scale 0.75
  114.                 model models/ammo/grenade_pin.tik
  115.                 life 1
  116.                 randvelaxis range 25 30 0 0
  117.                 accel 0 0 -330
  118.                 avelocity crandom 30 crandom 30 crandom 30
  119.             )
  120.         }
  121.     }
  122.  
  123.     secondarycharge nebelhandgranate_charge.skc
  124.     {
  125.         server
  126.         {
  127.             8 surface pin +nodraw
  128.         }
  129.         client
  130.         {
  131.             enter sound smokegrenade_snd_grenade_pull weapon
  132.  
  133.             8 tagspawn tag_pin
  134.             (
  135.                 count 1
  136.                 scale 0.75
  137.                 model models/ammo/grenade_pin.tik
  138.                 life 1
  139.                 randvelaxis range 25 30 0 0
  140.                 accel 0 0 -330
  141.                 avelocity crandom 30 crandom 30 crandom 30
  142.             )
  143.         }
  144.     }
  145.  
  146.     fire   nebelhandgranate.skc
  147.     {
  148.         server
  149.         {
  150.             first shoot
  151.             first surface all +nodraw
  152.         }
  153.         client
  154.         {
  155.             first sound smokegrenade_snd_grenade_throw weapon
  156.         }
  157.     }
  158.     secondaryfire   nebelhandgranate.skc
  159.     {
  160.         server
  161.         {
  162.             first shoot secondary
  163.             first surface all +nodraw
  164.         }
  165.         client
  166.         {
  167.             first sound smokegrenade_snd_grenade_throw weapon
  168.         }
  169.     }
  170.  
  171.     reload  nebelhandgranate.skc
  172.     {
  173.         server
  174.         {
  175.             first sound smokegrenade_snd_reload weapon
  176.             first surface all -nodraw
  177.  
  178.         }
  179.     }
  180. }
  181.